@extends("web.layouts.main")

@section("content")
   {{-- <section id="page-breadcrumb">
        <div class="vertical-center sun">
            <div class="container">
                <div class="row">
                    <div class="action">
                        <div class="col-sm-12">
                            <h4>“吾日三省吾身”</h4>
                            <p>‘为人谋而不忠乎？与朋友交而不信乎？传不习乎？’</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>--}}
    <section id="blog" class="padding-top">
        <div class="container">
            <div class="row">
                <div class="col-md-9 col-sm-7">
                    <div class="col-sm-12">
                        <div class="single-blog blog-details two-column">
                            <div class="post-content overflow">
                                <h2 class="post-title bold">{{ $post->title }}
                                    <span style="font-size: 12px;">
                                        @if (Auth::user()->can('update', $post))
                                        <a href="/post/{{$post->id}}/edit" style="color: #3399ff;"> <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> </a>&nbsp;&nbsp;
                                        @endif
                                        @if (Auth::user()->can('delete', $post))
                                        <a href="/post/{{$post->id}}/delete" style="color: #3399ff;"> <span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a>&nbsp;&nbsp;
                                        @endif
                                    </span>
                                </h2>
                                <h3 class="post-author">
                                    <a href="javascript:void 0;"><i class="fa fa-calendar"></i> {{$post->create}} </a>&nbsp;&nbsp;
                                    <a href="/user/{{$post->user_id}}"><i class="fa fa-user"></i> {{ $post->user->name }} </a>&nbsp;&nbsp;
                                    {{--<a href="#"><i class="fa fa-heart"></i> {{rand(10,120)}}  </a>&nbsp;&nbsp;--}}
                                    <a href="javascript:void 0;"><i class="fa fa-eye"></i> {{rand(5,30)}}  </a>&nbsp;&nbsp;
                                </h3>
                                <p>
                                    {!! $post->content !!}
                                </p>
                                <div class="{{--post-bottom overflow--}}">
                                    <ul class="nav navbar-nav post-nav">
                                        <li style="margin-right: 15px;"><a href="#" style="padding-top: 0px;"><i class="fa fa-tag"></i>PHP</a></li>
                                        <li style="margin-right: 15px;"><a href="#" style="padding-top: 0px;"><i class="fa fa-tag"></i>PHP</a></li>
                                        <li style="margin-right: 15px;"><a href="#" style="padding-top: 0px;"><i class="fa fa-tag"></i>PHP</a></li>
                                    </ul>
                                </div>
                                <div>

                                        <a href="/posts/{{$post->id}}/unzan" type="button" >取消赞</a>

                                </div>
                                <!--div class="author-profile padding">
                                    <div class="row">
                                        <div class="col-sm-2">
                                            <img src="images/blogdetails/1.png" alt="">
                                        </div>
                                        <div class="col-sm-10">
                                            <h3>Rodrix Hasel</h3>
                                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi</p>
                                            <span>Website:<a href="www.jooomshaper.com"> www.jooomshaper.com</a></span>
                                        </div>
                                    </div>
                                </div-->

                            </div>
                        </div>
                    </div>
                </div>
                @include("web.layouts.right_nav")
            </div>
        </div>
    </section>
    <!--/#blog-->
@endsection